﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Entity
{
    public class Support
    {
        #region[Public Properties]

        public string Id { get; set; }
        public string Name { get; set; }
        public string Tel { get; set; }
        public string Type { get; set; }
        public string Nick { get; set;}
        public string Ord { get; set; }
        public string Active { get; set; }
        public string PageId { get; set; }
        public string Lang { get; set; }

        #endregion
        #region[SupportIDataReader]
        public static Support SupportIDataReader(IDataReader dr)
        {
            var obj = new Support
                          {
                              Id = Convert.ToString(dr["Id"]),
                              Name = Convert.ToString(dr["Name"]),
                              Tel = Convert.ToString(dr["Tel"]),
                              Type = Convert.ToString(dr["Type"]),
                              Nick = Convert.ToString(dr["Nick"]),
                              Ord = Convert.ToString(dr["Ord"]),
                              Active = Convert.ToString(dr["Active"]),
                              PageId = Convert.ToString(dr["PageId"]),
                              Lang = Convert.ToString(dr["Lang"])

                          };
            return obj;
        }
        #endregion
    }
}
